import {XHRBackend, Http, RequestOptions} from '@angular/http';
import {InterceptedHttp} from './http.interceptor';
import { ConfigService } from '../../core/common/config.service';
import { Router } from '@angular/router';
export function httpFactory(xhrBackend: XHRBackend, requestOptions: RequestOptions, config: ConfigService, router: Router): Http {
    return new InterceptedHttp(xhrBackend, requestOptions, config, router);

}
